package org.bigjava.novelplatform.vo;

import lombok.Data;
import org.bigjava.novelplatform.common.enums.ContinuedState;
import org.bigjava.novelplatform.common.enums.SigningState;

import java.util.List;

/**
 * @author ykh
 * @create 2022-04-21 15:25
 */
@Data
public class BookInfoVo {

    private Integer id;

    /**
     * 书名
     */
    private String bookName;

    /**
     * 作者信息
     */
    private WriterInfoVo writerInfoVo;

    /**
     * 封面
     */
    private String coverUrl;

    /**
     * 连载状态
     */
    private ContinuedState serialStatus;

    /**
     * 签约状态
     */
    private SigningState signingStatus;

    /**
     * 二级分类
     */
    private String parentCatalog;

    /**
     * 三级分类
     */
    private String catalog;

    /**
     * 简介
     */
    private String briefIntroduction;

    /**
     * 章节数
     */
    private Integer numberOfChapters;

    /**
     * 最后10章信息
     */
    private List<ChapterVo> chapterVosList;

    /**
     * 上涨积分
     */
    private Long risingPoints;

    /**
     * 积分排名
     */
    private Integer scoreRanking;

    /**
     * 与上一名的积分差
     */
    private Integer integralDifference;


    /**
     * 积分
     */
    private Long integral;

    /**
     * 粉丝贡献排行
     */
//    private List<UserInfoVo> fanRanking;

    private List<Fans> fans;

    @Data
    public static class Fans{
        private Integer id;
        private String userType;
        private String nickName;
        private String headPortraitUrl;
        /**
         * 粉丝贡献
         */
        private Long contribution;
    }


    /**
     * 字数
     */
    private Integer words;



}
